package com.shopoo.dto.clientobject;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Description 菜单树结构
 * @Date 2020/10/29 4:09 下午
 * @Author <a href="mailto:android_li@sina.cn">Joe</a>
 **/
@Data
public class MenuTreeDTO implements Serializable {

    private static final long serialVersionUID = 161522011243684047L;
    /**
     * 菜单ID
     */
    @Schema(title = "菜单ID")
    private Long menuId;
    /**
     * 父菜单
     */
    @Schema(title = "父菜单")
    private Long parentId;
    /**
     * 菜单名
     */
    @Schema(title = "菜单名")
    private String name;
    /**
     * 路径
     */
    @Schema(title = "路径")
    private String url;
    /**
     * 层级
     */
    @Schema(title = "层级")
    private Short level;
    /**
     * 图标
     */
    @Schema(title = "图标")
    private String icon;
    /**
     * 排序
     */
    @Schema(title = "排序")
    private Short sort;
    /**
     * 状态 0-无效 1-有效
     */
    @Schema(title = "状态 0-无效 1-有效")
    private Short status;
    /**
     * 创建时间
     */
    @Schema(title = "创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @Schema(title = "更新时间")
    private LocalDateTime updateTime;

    @Schema(title = "子菜单")
    private List<MenuTreeDTO> children;

}
